package com.mm.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.mm.service.Hello;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/hello")
public class helloController {
    @Reference
    private Hello hello;
    @RequestMapping("/say")
    @ResponseBody
    public String sayHello(String name){
        System.out.println(name);
      return hello.sayHello(name);
    };
}
